#include<bits/stdc++.h>
using namespace std;
int f[205][205];
int a[40010]; 
int main(){
	int n;
	cin >> n;
	string ss;
	getline(cin , ss);
	istringstream iss(ss);
	int q = 0;
	while(iss >> a[q]){
		q++;
	}
	int flag = 0 , line = 1;
	for(int i = 0 ; i < q ; i++){
		for(int j = 1 ; j <= a[i] ; j++){
			cout << flag;
			line++;
			if(line == n + 1){
				line -= n;
				cout << endl;
			}
		}
		if(flag == 0){
			flag = 1;
		}
		else if(flag == 1){
			flag = 0;
		}
	}
}
